package com.exm.sql.model.base;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

@Data
public class BaseModel {

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    @TableLogic(value = "0",delval = "1")
    private Boolean isDelete;
    @TableField(fill = FieldFill.INSERT) //创建时自动填充
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)//创建与修改时自动填充
    private Date updateTime;

}
